3.4.40 \(\int (b \cos (c+d x))^{2/3} (A+B \cos (c+d x)+C \cos ^2(c+d x)) \, dx\) [340]

3.4.40.1 Optimal result
3.4.40.2 Mathematica [A] (verified)
3.4.40.3 Rubi [A] (verified)
3.4.40.4 Maple [F]
3.4.40.5 Fricas [F]
3.4.40.6 Sympy [F(-1)]
3.4.40.7 Maxima [F]
3.4.40.8 Giac [F]
3.4.40.9 Mupad [F(-1)]

3.4.40.1 Optimal result

Integrand size = 33, antiderivative size = 154 \[ \int (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\frac {3 C (b \cos (c+d x))^{5/3} \sin (c+d x)}{8 b d}-\frac {3 (8 A+5 C) (b \cos (c+d x))^{5/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {5}{6},\frac {11}{6},\cos ^2(c+d x)\right ) \sin (c+d x)}{40 b d \sqrt {\sin ^2(c+d x)}}-\frac {3 B (b \cos (c+d x))^{8/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {4}{3},\frac {7}{3},\cos ^2(c+d x)\right ) \sin (c+d x)}{8 b^2 d \sqrt {\sin ^2(c+d x)}} \]

output
3/8*C*(b*cos(d*x+c))^(5/3)*sin(d*x+c)/b/d-3/40*(8*A+5*C)*(b*cos(d*x+c))^(5 
/3)*hypergeom([1/2, 5/6],[11/6],cos(d*x+c)^2)*sin(d*x+c)/b/d/(sin(d*x+c)^2 
)^(1/2)-3/8*B*(b*cos(d*x+c))^(8/3)*hypergeom([1/2, 4/3],[7/3],cos(d*x+c)^2 
)*sin(d*x+c)/b^2/d/(sin(d*x+c)^2)^(1/2)
 
3.4.40.2 Mathematica [A] (verified)

Time = 0.45 (sec) , antiderivative size = 121, normalized size of antiderivative = 0.79 \[ \int (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=-\frac {3 (b \cos (c+d x))^{2/3} \left (2 (8 A+5 C) \cot (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {5}{6},\frac {11}{6},\cos ^2(c+d x)\right ) \sqrt {\sin ^2(c+d x)}+10 B \cos (c+d x) \cot (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {4}{3},\frac {7}{3},\cos ^2(c+d x)\right ) \sqrt {\sin ^2(c+d x)}-5 C \sin (2 (c+d x))\right )}{80 d} \]

input
Integrate[(b*Cos[c + d*x])^(2/3)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2),x 
]
 
output
(-3*(b*Cos[c + d*x])^(2/3)*(2*(8*A + 5*C)*Cot[c + d*x]*Hypergeometric2F1[1 
/2, 5/6, 11/6, Cos[c + d*x]^2]*Sqrt[Sin[c + d*x]^2] + 10*B*Cos[c + d*x]*Co 
t[c + d*x]*Hypergeometric2F1[1/2, 4/3, 7/3, Cos[c + d*x]^2]*Sqrt[Sin[c + d 
*x]^2] - 5*C*Sin[2*(c + d*x)]))/(80*d)
 
3.4.40.3 Rubi [A] (verified)

Time = 0.47 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.02, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.212, Rules used = {3042, 3502, 27, 3042, 3227, 3042, 3122}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \left (b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{2/3} \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\)

\(\Big \downarrow \) 3502

\(\displaystyle \frac {3 \int \frac {1}{3} (b \cos (c+d x))^{2/3} (b (8 A+5 C)+8 b B \cos (c+d x))dx}{8 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{5/3}}{8 b d}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {\int (b \cos (c+d x))^{2/3} (b (8 A+5 C)+8 b B \cos (c+d x))dx}{8 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{5/3}}{8 b d}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {\int \left (b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{2/3} \left (b (8 A+5 C)+8 b B \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx}{8 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{5/3}}{8 b d}\)

\(\Big \downarrow \) 3227

\(\displaystyle \frac {b (8 A+5 C) \int (b \cos (c+d x))^{2/3}dx+8 B \int (b \cos (c+d x))^{5/3}dx}{8 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{5/3}}{8 b d}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {b (8 A+5 C) \int \left (b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{2/3}dx+8 B \int \left (b \sin \left (c+d x+\frac {\pi }{2}\right )\right )^{5/3}dx}{8 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{5/3}}{8 b d}\)

\(\Big \downarrow \) 3122

\(\displaystyle \frac {-\frac {3 (8 A+5 C) \sin (c+d x) (b \cos (c+d x))^{5/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {5}{6},\frac {11}{6},\cos ^2(c+d x)\right )}{5 d \sqrt {\sin ^2(c+d x)}}-\frac {3 B \sin (c+d x) (b \cos (c+d x))^{8/3} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {4}{3},\frac {7}{3},\cos ^2(c+d x)\right )}{b d \sqrt {\sin ^2(c+d x)}}}{8 b}+\frac {3 C \sin (c+d x) (b \cos (c+d x))^{5/3}}{8 b d}\)

input
Int[(b*Cos[c + d*x])^(2/3)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2),x]
 
output
(3*C*(b*Cos[c + d*x])^(5/3)*Sin[c + d*x])/(8*b*d) + ((-3*(8*A + 5*C)*(b*Co 
s[c + d*x])^(5/3)*Hypergeometric2F1[1/2, 5/6, 11/6, Cos[c + d*x]^2]*Sin[c 
+ d*x])/(5*d*Sqrt[Sin[c + d*x]^2]) - (3*B*(b*Cos[c + d*x])^(8/3)*Hypergeom 
etric2F1[1/2, 4/3, 7/3, Cos[c + d*x]^2]*Sin[c + d*x])/(b*d*Sqrt[Sin[c + d* 
x]^2]))/(8*b)
 

3.4.40.3.1 Defintions of rubi rules used

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 3122
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[Cos[c + d*x]*(( 
b*Sin[c + d*x])^(n + 1)/(b*d*(n + 1)*Sqrt[Cos[c + d*x]^2]))*Hypergeometric2 
F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2], x] /; FreeQ[{b, c, d, n}, x] 
 &&  !IntegerQ[2*n]
 

rule 3227
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x 
_)]), x_Symbol] :> Simp[c   Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b   Int 
[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
 

rule 3502
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) 
+ (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Co 
s[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Simp[1/(b*(m 
+ 2))   Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m 
 + 2) - a*C)*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] 
 &&  !LtQ[m, -1]
 
3.4.40.4 Maple [F]

\[\int \left (\cos \left (d x +c \right ) b \right )^{\frac {2}{3}} \left (A +B \cos \left (d x +c \right )+C \left (\cos ^{2}\left (d x +c \right )\right )\right )d x\]

input
int((cos(d*x+c)*b)^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x)
 
output
int((cos(d*x+c)*b)^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x)
 
3.4.40.5 Fricas [F]

\[ \int (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{\frac {2}{3}} \,d x } \]

input
integrate((b*cos(d*x+c))^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x, algorith 
m="fricas")
 
output
integral((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c))^(2/3), x 
)
 
3.4.40.6 Sympy [F(-1)]

Timed out. \[ \int (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\text {Timed out} \]

input
integrate((b*cos(d*x+c))**(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)**2),x)
 
output
Timed out
 
3.4.40.7 Maxima [F]

\[ \int (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{\frac {2}{3}} \,d x } \]

input
integrate((b*cos(d*x+c))^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x, algorith 
m="maxima")
 
output
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c))^(2/3), 
x)
 
3.4.40.8 Giac [F]

\[ \int (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int { {\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{\frac {2}{3}} \,d x } \]

input
integrate((b*cos(d*x+c))^(2/3)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2),x, algorith 
m="giac")
 
output
integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c))^(2/3), 
x)
 
3.4.40.9 Mupad [F(-1)]

Timed out. \[ \int (b \cos (c+d x))^{2/3} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx=\int {\left (b\,\cos \left (c+d\,x\right )\right )}^{2/3}\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right ) \,d x \]

input
int((b*cos(c + d*x))^(2/3)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2),x)
 
output
int((b*cos(c + d*x))^(2/3)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2), x)